import sevoes from "@/util/Http";
import Qs from "qs";
function memberquery(data) {
  //会员查询
  return sevoes({
    method: "get",
    params: {
      _gp: "admin.user",
      _mt: "getUser",
      ...data,
    },
  });
}

function updateUser(data) {
  //编辑
  return sevoes({
    method: "post",
    data: Qs.stringify({
      _gp: "admin.user",
      _mt: "updateUser",
      ...data,
    }),
  })
}

function deleteUser(data) { 
  //删除
  return sevoes({
    method: "post",
    data: Qs.stringify({
      _gp: "admin.user",
      _mt: "deleteUser",
      ...data,
    }),
  })
}

function updateStatus(data) { 
  //会员状态
  return sevoes({
    method: "post",
    data: Qs.stringify({
      _gp: "admin.user",
      _mt: "updateStatus",
      ...data,
    }),
  })
}

export default {
  memberquery,
  updateUser,
  deleteUser,
  updateStatus,
}